3.1019 \(\int x (-a+b x^n)^p (a+b x^n)^p \, dx\)

Optimal. Leaf size=70 \[ \frac {1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};\frac {b^2 x^{2 n}}{a^2}\right ) \]

[Out]

1/2*x^2*(-a+b*x^n)^p*(a+b*x^n)^p*hypergeom([-p, 1/n],[1+1/n],b^2*x^(2*n)/a^2)/((1-b^2*x^(2*n)/a^2)^p)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {366, 365, 364} \[ \frac {1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};\frac {b^2 x^{2 n}}{a^2}\right ) \]

Antiderivative was successfully verified.

[In]

Int[x*(-a + b*x^n)^p*(a + b*x^n)^p,x]

[Out]

(x^2*(-a + b*x^n)^p*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), (b^2*x^(2*n))/a^2])/(2*(1 - (b^2*x
^(2*n))/a^2)^p)

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 365

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[(a^IntPart[p]*(a + b*x^n)^FracPart[p])
/(1 + (b*x^n)/a)^FracPart[p], Int[(c*x)^m*(1 + (b*x^n)/a)^p, x], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[
p, 0] &&  !(ILtQ[p, 0] || GtQ[a, 0])

Rule 366

Int[((c_.)*(x_))^(m_.)*((a1_) + (b1_.)*(x_)^(n_))^(p_)*((a2_) + (b2_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[((a1
 + b1*x^n)^FracPart[p]*(a2 + b2*x^n)^FracPart[p])/(a1*a2 + b1*b2*x^(2*n))^FracPart[p], Int[(c*x)^m*(a1*a2 + b1
*b2*x^(2*n))^p, x], x] /; FreeQ[{a1, b1, a2, b2, c, m, n, p}, x] && EqQ[a2*b1 + a1*b2, 0] &&  !IntegerQ[p]

Rubi steps

\begin {align*} \int x \left (-a+b x^n\right )^p \left (a+b x^n\right )^p \, dx &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (-a^2+b^2 x^{2 n}\right )^{-p}\right ) \int x \left (-a^2+b^2 x^{2 n}\right )^p \, dx\\ &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p}\right ) \int x \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^p \, dx\\ &=\frac {1}{2} x^2 \left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};\frac {b^2 x^{2 n}}{a^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 72, normalized size = 1.03 \[ \frac {1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};\frac {b^2 x^{2 n}}{a^2}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x*(-a + b*x^n)^p*(a + b*x^n)^p,x]

[Out]

(x^2*(-a + b*x^n)^p*(a + b*x^n)^p*HypergeometricPFQ[{n^(-1), -p}, {1 + n^(-1)}, (b^2*x^(2*n))/a^2])/(2*(1 - (b
^2*x^(2*n))/a^2)^p)

________________________________________________________________________________________

fricas [F]  time = 0.54, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p} x, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(-a+b*x^n)^p*(a+b*x^n)^p,x, algorithm="fricas")

[Out]

integral((b*x^n + a)^p*(b*x^n - a)^p*x, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p} x\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(-a+b*x^n)^p*(a+b*x^n)^p,x, algorithm="giac")

[Out]

integrate((b*x^n + a)^p*(b*x^n - a)^p*x, x)

________________________________________________________________________________________

maple [F]  time = 1.07, size = 0, normalized size = 0.00 \[ \int x \left (b \,x^{n}+a \right )^{p} \left (b \,x^{n}-a \right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(b*x^n-a)^p*(b*x^n+a)^p,x)

[Out]

int(x*(b*x^n-a)^p*(b*x^n+a)^p,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p} x\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(-a+b*x^n)^p*(a+b*x^n)^p,x, algorithm="maxima")

[Out]

integrate((b*x^n + a)^p*(b*x^n - a)^p*x, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int x\,{\left (a+b\,x^n\right )}^p\,{\left (b\,x^n-a\right )}^p \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a + b*x^n)^p*(b*x^n - a)^p,x)

[Out]

int(x*(a + b*x^n)^p*(b*x^n - a)^p, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \left (- a + b x^{n}\right )^{p} \left (a + b x^{n}\right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(-a+b*x**n)**p*(a+b*x**n)**p,x)

[Out]

Integral(x*(-a + b*x**n)**p*(a + b*x**n)**p, x)

________________________________________________________________________________________